import request from "@/utils/request"
// 配置列表
export function commissionSettingList(params) {
  return request({
    url: `/expense/product-dev-commission-setting/list`,
    method: "get",
    params,
  })
}
// 新增配置
export function commissionSettingStore(data) {
  return request({
    url: `/expense/product-dev-commission-setting/store`,
    method: 'post',
    data
  })
}
// 修改配置
export function commissionSettingUpdate(data) {
  return request({
    url: `/expense/product-dev-commission-setting/update`,
    method: 'post',
    data
  })
}
// 配置 删除
export function commissionSettingDelete(data) {
  return request({
    url: `/expense/product-dev-commission-setting/delete`,
    method: 'post',
    data
  })
}
// 配置切换状态
export function commissionSettingSwitchState(data) {
  return request({
    url: `/expense/product-dev-commission-setting/switchState`,
    method: 'post',
    data
  })
}
// 配置 导出
export function commissionSettingExport(data) {
  return request({
    url: `/expense/product-dev-commission-setting/export`,
    method: 'post',
    data
  })
}

// 列表
export function queryList(data) {
  return request({
    url: `/base/vat-setting/index`,
    method: 'post',
    data
  })
}
// 日志
export function oplog(params) {
  return request({
    url: `/oplog/base.vat-setting`,
    method: 'get',
    params
  })
}
// 平台佣金设置-启用禁用
export function settingStatus(data) {
  return request({
    url: `/base/vat-setting/status`,
    method: 'POST',
    data
  })
}
// 平台佣金设置-获取详情
export function detail(params) {
  return request({
    url: `/base/vat-setting/detail`,
    method: 'get',
    params
  })
}
//平台佣金设置-编辑
export function updateSetting(data) {
  return request({
    url: `/base/vat-setting/update`,
    method: 'POST',
    data
  })
}
//平台佣金设置-创建
export function createSetting(data) {
  return request({
    url: `/base/vat-setting/create`,
    method: 'POST',
    data
  })
}
//平台佣金设置-删除
export function deleteSetting(data) {
  return request({
    url: `/base/vat-setting/delete`,
    method: 'POST',
    data
  })
}
